package com.wxb.service.impl;

import com.wxb.domain.MallAdEntity;
import com.wxb.mapper.MallAdMapper;
import com.wxb.service.IMallAdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-30 10:47
 * @Version 1.0
 * @Description
 * @ClassName MallAdServiceImpl
 **/
@Service
public class MallAdServiceImpl implements IMallAdService {

    @Autowired
    private MallAdMapper adDao;


    public MallAdEntity queryObject(Integer id) {
        return adDao.queryObject(id);
    }


    public List<MallAdEntity> queryList(Map<String, Object> map) {
        return adDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return adDao.queryTotal(map);
    }


    public void save(MallAdEntity brand) {
        adDao.save(brand);
    }


    public void update(MallAdEntity brand) {
        adDao.update(brand);
    }


    public void delete(Integer id) {
        adDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        adDao.deleteBatch(ids);
    }
}
